package org.zjx.service;

import org.zjx.dao.entity.DailyTasks;
import com.baomidou.mybatisplus.extension.service.IService;
import org.zjx.dao.entity.Role;

import java.util.List;


public interface IDailyTasksService extends IService<DailyTasks> {
    //获取空闲的待执行每日任务
    DailyTasks queryTasksOnAccountUnUsd();
    //获取正在执行的任务
    DailyTasks selectByConditions(long deviceId,int temporary);

    //更新 赋予执行设备以及改变执行状态为ing
    boolean updateByConditions(long daily_task_id);

    //提交任务完成
    boolean dailyTaskOver(long daily_task_id,long deviceId,int temporary);

    DailyTasks queryTaskByRole(Role role);
}
